package example;

/**
 * 抽象构建角色（Component）
 */
public abstract class FastFood {

    public FastFood(double price,String desc){
        this.desc=desc;
        this.price=price;
    }

    private  double price;

    private String desc;

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public abstract  double cost();
}
